package cn.zl.biz.mapper;

import cn.zl.biz.entity.SysArticle;
import cn.zl.biz.entity.SysArticleTag;
import cn.zl.biz.entity.SysTag;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @author zl
 * @date 2023/9/12
 */
public interface ArticleTagMapper extends BaseMapper<SysArticleTag> {

    List<SysTag> findByArticleId(long articleId);

    /**
     *通过TagId查询所有的Article
     */
    List<SysArticle> findByTagId(Integer tagId);
}
